package main

import "fmt"

func main() {
	srcSlice := []int{1, 2, 3}
	destSlice := []int{0, 0, 0, 0, 0}
	copy(destSlice, srcSlice)

	fmt.Println("srcSlice =", srcSlice)   // srcSlice = [1 2 3]
	fmt.Println("destSlice =", destSlice) // destSlice = [1 2 3 0 0]
}
